package com.it.schoolbookshop_back.entities.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 已售出书籍DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SoldBookDTO {
    
    /**
     * 封面图片路径
     */
    private String cover;
    
    /**
     * 封面图片类型
     */
    @JsonProperty("cover_type")
    private String coverType;
    
    /**
     * 书籍ID
     */
    @JsonProperty("book_id")
    private Integer bookId;
    
    /**
     * 书籍标题
     */
    private String title;
} 